package com.jubaopen.service;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;



public class JBPJob extends QuartzJobBean {

	private TradeService tradeService;
	
	@Override
	protected void executeInternal(JobExecutionContext jobexecutioncontext)
			throws JobExecutionException {
		tradeService.doSettleFee();
		tradeService.doQuerySettleState();
	}

	public void setTradeService(TradeService tradeService) {
		this.tradeService = tradeService;
	}

}
